package han.yang.service.group.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import han.yang.common.ResponseVO;
import han.yang.service.group.dao.ImGroupMemberEntity;
import han.yang.service.group.model.dto.GroupMemberDto;
import han.yang.service.group.model.req.GetJoinedGroupReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

@Mapper
public interface ImGroupMemberMapper extends BaseMapper<ImGroupMemberEntity> {
    List<GroupMemberDto> getGroupMember(@Param("appId") Integer appId, @Param("groupId") String groupId);

    Collection<String> getJoinedGroupId(GetJoinedGroupReq req);
}
